package com.wlyuan.open.scanner.domain.order.mapping;

import org.mapstruct.Mapping;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * @author lijing
 * @description
 */
@Retention(RetentionPolicy.CLASS)
@Mapping(target = "from.fromTime", source = "indexFromtime")
@Mapping(target = "from.contactName", source = "indexFromman")
@Mapping(target = "from.contactMobile", source = "indexFromcontact")
@Mapping(target = "from.provinceCode", source = "indexFromprovince")
@Mapping(target = "from.province", source = "fromProvinceName")
@Mapping(target = "from.cityCode", source = "indexFromcity")
@Mapping(target = "from.city", source = "fromCityName")
@Mapping(target = "from.districtCode", source = "indexFromdistrict")
@Mapping(target = "from.district", source = "fromDistrictName")
@Mapping(target = "from.address", source = "indexFrom")
@Mapping(target = "from.location", source = "indexFromlocation")
@Mapping(target = "from.locationType", source = "indexFromtype")
public @interface FromMapping {
}
